sysctl: adjust XEN_SYSCTL_cputopoinfo behavior
authorJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2015 16:04:00 +0000 (18:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2015 16:04:00 +0000 (18:04 +0200)
commit05970d10bdeae6979b6ec053f9286a3d206acc50
tree3a27263022e2b9c33bc05e1bb47ea87594cce0c4
parente4b3d6366a7fa341d2322e4cc5a4f13920097775
sysctl: adjust XEN_SYSCTL_cputopoinfo behavior

The new function's implementation, unlike the original one of
XEN_SYSCTL_topologyinfo, didn't allow the caller to get what it needs
(if e.g. it's after the data for just one specific CPU) with just one
hypercall, without caring about the total number of CPUs in the system.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/sysctl.c
xen/include/public/sysctl.h